package com.citycloud.ccuap.tc.admin.datagrouplevel;

import com.citycloud.ccuap.framework.service.mybatis.MybatisServiceImpl;
import com.citycloud.ccuap.tc.admin.entity.SysDatagroupLevel;
import com.citycloud.ccuap.tc.admin.repository.SysDatagroupLevelRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 数据组可用等级业务处理实现
 * @author sufeng
 *
 */
@Service
public class DatagroupLevelService extends MybatisServiceImpl<SysDatagroupLevelRepository, SysDatagroupLevel, String> implements IDatagroupLevelService {

    @Autowired
    private SysDatagroupLevelRepository sysDatagroupLevelRepository;

    @Override
    public List<SysDatagroupLevel> findSysDatagroupLevelByDataGroupId(String datagroupId) {
        return sysDatagroupLevelRepository.findSysDatagroupLevelsByDatagroupId(datagroupId);
    }

}